package com.qst.order.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

// 通知实体类
@Data
@TableName("t_notice")
public class Notice {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String title;
    private String type; // ORDER, INVENTORY, REFUND等order/inventory/refund  --订单/库存预警/退货
    private Integer orderId;
    private Integer productId;
    private Integer merchantId; // 关联的商家ID
    private Boolean isRead;
    private LocalDateTime createTime;
}